var obj = {
  a_a: 1,
  b_b: {
    c_c: 2,
    d_d: 3
  },
  e_e: 4
}
function qu (obj) {
  const list = {}
  for (const key in obj) {
    if (typeof (obj.key) !== 'Object') {
      list[key.replace(/_/, '')] = obj[key]
    }
  }
}
qu(obj)
